<?php
$this->breadcrumbs=array(
	Yii::t('cms', 'Users'),
);
?>
<h1><?php  echo Yii::t('cms', 'Users');?></h1>

<div id="updateData">

<?php $this->widget('CDataFilterWidget',array(
		'filters'=>$filters,
		//'ajaxMode'=>true,
		//'updateSelector'=>'#yw0',
		//'formAction'=>array('/user/index'),
		'formMethod'=>'get'
)); ?>

<?php $this->widget('application.components.MyGridView', array(
	'dataProvider'=>$dataProvider,
	//'ajaxUpdate'=>'#updateData',
	'columns'=>array(
		'contract',
		'username',
		'balance',
		array(
			'name'=>'packet_id',
			'value'=>'$data->packet->name',
		),
		'blocked_by_bill:boolean',
		array(
			'class'=>'CButtonColumn',
			'viewButtonImageUrl'=>'/css/ico/view.png',
			'updateButtonImageUrl'=>'/css/ico/edit.png',
			'deleteButtonImageUrl'=>'/css/ico/del.png',
			'template'=>'{pay} {view} {update} {delete}',
			'htmlOptions'=>array('class'=>'button-column4'),
			'buttons'=>array(
				'pay' => array(
    				'label'=>Yii::t('cms', 'Pay'),     // text label of the button
    				'url'=>'Yii::app()->controller->createUrl("/payment/pay",array("id"=>$data->primaryKey))',       // the PHP expression for generating the URL of the button
    				'imageUrl'=>'/css/ico/pay.png',  // image URL of the button. If not set or false, a text link is used
    			),
    		),
		),
	),
)); ?>

</div>